<?php

	define("PX_ACCESS_USERID", "MairangiArtsC" ); // <----- 
	// define("PX_ACCESS_URL", "https://www.paymentexpress.com/pxpay/pxpay.aspx");
	// define("PX_ACCESS_URL", "https://sec2.paymentexpress.com/pxpay/pxaccess.aspx");
	define("PX_ACCESS_URL", "https://sec.paymentexpress.com/pxpay/pxaccess.aspx");
	define("PX_ACCESS_KEY","cdbc43a7b67bb7f3fc425df54e2727922ad786287c5a5a63"); // <----- 
	define("PX_ACCESS_MAC_KEY", "70441666009b665e"); // <----- 

	/*
	define("PX_ACCESS_USERID", "Gravitate_Dev" ); // <----- 
	// define("PX_ACCESS_URL", "https://www.paymentexpress.com/pxpay/pxpay.aspx");
	define("PX_ACCESS_URL", "https://sec2.paymentexpress.com/pxpay/pxaccess.aspx");
	define("PX_ACCESS_KEY","dd8d130a7e13efb27e8a1a5fe5a07b787c55b8adb76db101"); // <----- 
	define("PX_ACCESS_MAC_KEY", "629dd985a0f05d87"); // <----- 
	*/
	
	# PX Post
	//define("PX_POST_USERID", "GravitateDev" ); // Gravitate_Dev <----- 
	//define("PX_POST_PASSWORD", "ab3185f9" ); // b1865e0f  <----- 
	//define("PX_POST_URL", "https://www.paymentexpress.com/pxpost.aspx" );
	
	define("ORDER_STATUS_NEW", 0);
	define("ORDER_STATUS_PENDING", 2219); // <-----
	define("ORDER_STATUS_ACCEPTED", 2220); // <-----
	define("ORDER_STATUS_DECLINED", 2221); // <-----
	define("ORDER_STATUS_CANCELLED", 2222); // <-----
	define("ORDER_STATUS_AUTH", 2223); // <-----
	define("ORDER_STATUS_COMPLETED", 2224); // <-----

	//define("ORDER_STATUS_COMPLETED", 138); 
	
	//-------------THIS IS FOR ON ACCOUNT PAYMENT----------------//
	// define("ORDER_STATUS_ACCEPTED_MAIL", 0);
	//-----------------------------------------------------------//
	
	define("CMS_ORDERITEM_CLASS", "MAIOrderItem"); 
	define("CMS_ORDERCONTAINER_CLASS","MAIOrderContainer");
	
	define("CMS_ORDERITEM_FORMID", 168);
	
	// this is an odd ball place.. not sure what the hell this is for..
	// define("PRODUCT_IMAGE_FIELD","restricted");	

	//what is this for??/	
	//define("CMS_NEW_ORDER_NITIFY_EMAIL","antony@gravitate.co.nz"); 
	
	global $CMS_ORDERCONTAINER_CLASS;
	$CMS_ORDERCONTAINER_CLASS = CMS_ORDERCONTAINER_CLASS; 
	
	global $CMS_ORDERITEM_CLASS;
	$CMS_ORDERITEM_CLASS = CMS_ORDERITEM_CLASS;
	
	define("ORDER_DPS_TITLE","MAC Online Order");
	
    //define the various files for the various steps of the order process
	
	define("ORDER_DISPLAY_CANCEL_URL","/Catalogue/");
	
	//DPS reutrn urls.
	define("PAYMENT_SUCCESS_URL", CMS_HTTP_HOST. "/Cart/");
	define("PAYMENT_FAIL_URL", CMS_HTTP_HOST. "/Cart/");

	//these should be a cms core config option.
	define ('ORDER_CONTAINER_KEY', 'orderContainer');
	define ('ORDER_STEP_KEY','orderStep');
    
	define ("ORDER_ITEM","orderItem");
	define ('ORDER_CREATE_NEW_ITEM','createNewOrderItem');
	define ("ORDER_ITEM_EDIT","orderItemEdit");
	define ('ORDER_SUBMIT','orderSubmit');
	define ('ORDER_REVIEW',"reviewOrder");	
	define ("ORDER_CANCEL","cancelOrder");
	define ('ORDER_FINALISE','finaliseOrder');
	define ('ORDER_DISPLAY','orderDisplay');
	define ('ORDER_MANUAL_FINALISE','manualFinaliseOrder');
		
	define ('ORDER_FINALISE_SUCCESS','orderFinalise_Success');
	define ('ORDER_FINALISE_FAIL','orderFinalise_Fail');
		
	include_once(CMS_HOME_DIR . "/lib/CmsOrderContainer.php");
	include_once(CMS_HOME_DIR . "/lib/CmsOrderItem.php");
	
	//define("EMAIL_INVOICE_ADDRESS", "mairangiartscentre@xtra.co.nz");
	define("EMAIL_INVOICE_ADDRESS", " michelle@mairangiarts.co.nz");
	
	
